home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 73
/
073.d81
/
text printer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
85 lines
5 poke53281,0:poke53280,0:print"[147][159]"
10 poke55,.:poke56,64:clr
12 sys57812"dirtovar.o",8,0:poke780,0:poke781,0:poke782,141:sys65493
16 sys57812"tp1990.o",8,0:poke780,0:poke781,0:poke782,192:sys65493
104 :
105 rem setup stuff...
106 :
110 q$=chr$(34):c=54272
115 tp$="[147][150] [212] [197] [216] [212] [208] [210] [201] [206] [212] [197] [210] 1 9 9 0"
117 sp$=" "
120 dim ty$(144),na$(144),le$(144),td$(23),ln$(23),pc%(23)
130 gosub1000:ifqtthenprinttp$:goto2000
140 printtp$:print"[159] [201]nsert the disk with the "q$"t."q$" [159]files"
145 printtab(11)"and press [211][208][193][195][197][154]."
150 geta$:ifa$<>" "then150
160 printtp$:print"[159][210]eading all "q$"prg"q$" [159]files with "q$"t."q$" [159]names."
180 sys36096:i=1:j=1
190 printtp$
200 ifna$(i)=""then225
210 ifleft$(na$(i),2)="t."thentd$(j)=na$(i):ln$(j)=le$(i):j=j+1
220 i=i+1:goto200
225 ifj=1thenprint"[159] [212]here are no "q$"t."q$" [159]files on this disk.":goto2000
230 print"[158] [176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174][145]"
231 printtab(20-(len(na$(0))/2)-1)"[179][129]"na$(0)"[158][171]"
232 fori=1toj-1:print" [158][221]"tab(13)"[154]"td$(i)tab(30)"[152]"ln$(i)tab(37)"[158][221]":next
234 print" [173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
240 k=1
245 poke214,22:print:print" [195][210][211][210] [159]keys select [211][208][193][195][197] [159]toggle [193] [159]all"
247 print" [198]1 [159]print the highlighted files"
250 poke214,k+1:print:printtab(10)"[153][192]>[145]":poke198,0
260 geta$:ifa$=""then260
261 printtab(10)" [145]"
262 ifa$="[145]"thenk=k-1:ifk<1thenk=j-1
264 ifa$=""thenk=k+1:ifk>j-1thenk=1
265 ifa$="[133]"thenpoke214,22:print:printsp$:printsp$"":goto300
268 ifa$<>"a"then280
269 print"":fori=1toj-1
270 ifpc%(i)=0thenprinttab(13)""td$(i):pc%(i)=1:goto274
272 ifpc%(i)thenprinttab(13)"[154]"td$(i):pc%(i)=0
274 next:goto240
280 ifa$<>" "then250
282 ifpc%(k)thenpc%(k)=0:printtab(13)"[154]"td$(k):goto250
284 pc%(k)=1:printtab(13)""td$(k):goto250
300 poke214,22:print:print" [154]([208][154])ause ([195][154])ontinue ([211][154])top"
302 open4,4,7:fori=1toj:ifpc%(i)=0then380
305 poke214,i+1:print:print"[153][210]eading[145]"
310 sys57812td$(i),8,0:poke780,0:poke781,0:poke782,64:sys65493
320 poke(peek(174)+256*peek(175)),0
330 print"[153][208]rinting[145]"
340 iffl=1thensys49152,16384:goto360
345 iffl=2thensys49158,16384:goto360
350 iffl=3thensys49155,16384
360 print"[153] [145]"
380 nexti:close4:goto2000
1000 poke53281,0:poke53280,0
1010 print"[147][159]"tp$
1030 print"[153] by [211]cott [210]esh and [198]ender [212]ucker"
1092 print"[155] [205]ake sure your printer is on-line"
1094 print" and the print head is set to the top"
1096 print" of a page."
1100 print" [159](1[159]) [211]ingle 38-character column with"
1105 print" a left margin of 24."
1110 print" [159](2[159]) [211]ingle 65-character column with"
1115 print" a left margin of 10."
1120 print" [159](3[159]) [212]wo 38-character columns with"
1125 print" a left margin of 0."
1127 print" [159](4[159]) [210]eturn to [204][207][193][196][211][212][193][210] [194][210][201][197][198][211]"
1130 print"[155] [212]ake your pick."
1140 geta$:ifa$<"1"ora$>"4"then1140
1145 ifa$="4"thenqt=1:return
1150 fl=val(a$)
1160 return
2000 print"[147]"
2002 printtab(8)"[154]([196][154])o another disk"
2005 printtab(8)"[154]([210][154])eturn to [204][207][193][196][211][212][193][210] [194]riefs"
2010 poke198,.
2020 geta$:ifa$<>"d"anda$<>"r"then2020
2030 ifa$="d"thenrun110
2040 open15,8,15,"r0:loadstar briefs=loadstar briefs":input#15,er:close15
2050 ifer<>63thenend
2060 print"[147][144]load"q$"loadstar briefs"q$",8"
2070 print"run"
2080 poke631,13:poke632,13:poke198,2:end
10000 open15,8,15,"s0:text printer":close15:save"text printer",8:end